package com.liudadan.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("interceptor")
public class InterceptorController {


    @GetMapping("a")
    public String a(){
        System.out.println("InterceptorController.a");
        int i = 1/0;
        return "a";
    }

    @GetMapping("b")
    public String b(){
        System.out.println("InterceptorController.b");
        return "b";
    }
}
